package com.learn.springboot.controller.temp;

import com.learn.springboot.config.ParamConfig;
import com.learn.springboot.entity.ParamInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxing
 * @version 2020/8/3 10:19 Administrator
 */
@RestController
@RequestMapping("/param")
public class ParamController {
    @Autowired
    ParamConfig paramConfig;

    @GetMapping("/param")
    public ParamInfo getParam(){
        return paramConfig.getInfo();
    }
}
